@echo off
title Packaging Soybean...
echo Packaging Soybean...

echo.
echo "Switch Node Version.............."
call nvm use 20

echo.
echo Do you want to install the dependency? [Y or N, default N]:
set /p YN=
if /i "%YN%"=="Y" (
    echo "PNPM Install.............."
    call pnpm install
) else (
    echo "PNPM Install skipped.............."
)

echo.
echo "NPM Build.............."
call npm run build:test

echo.
echo "Copy File.............."
rd .\k8s\test\dist /S /Q
xcopy .\dist .\k8s\test\dist /E /I
